import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    port: 50234,
    proxy: {
      '/wow': {
        target: 'http://82.156.127.188:8080',
        // target: 'http://localhost:8080',
        changeOrigin: true,
        // rewrite: (path) => path.replace(/^\/wow/, '')
      },
      '/xox': {
        target: 'http://127.0.0.1:5000',
        // target: 'http://localhost:8080',
        changeOrigin: true,
        // rewrite: (path) => path.replace(/^\/wow/, '')
      }
    }
  },
})
